package main

import (
	"fmt"
	"golang.org/x/exp/mmap"
)

func main() {
	at, err := mmap.Open("D:\\fcbox\\工作记录\\香港顺便柜.sql")
	defer at.Close()
	if err != nil {
		fmt.Println(err.Error())
	}
	buff := make([]byte, 1024)
	i, err := at.ReadAt(buff, 0)
	if err != nil {
		fmt.Println(err.Error())
	}
	fmt.Println(i)
	fmt.Println(string(buff))

}
